﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    				xmlns:local="clr-namespace:MyRecipeBook.V2.UI.CustomControls">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/MyRecipeBook.V2.UI;Component/Themes/DefaultDictionary.xaml"/>
    </ResourceDictionary.MergedDictionaries>
	
	<Style TargetType="{x:Type local:OptionView}">
		<Setter Property="Foreground" Value="{DynamicResource customcontrol_optionview_foreground}" />
		<Setter Property="FontWeight" Value="{DynamicResource customcontrol_optionview_fontweight}" />
		<Setter Property="FontSize" Value="{DynamicResource customcontrol_optionview_fontsize}" />
		<Setter Property="FontFamily" Value="{DynamicResource application_fontfamily}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:OptionView}">
					<TextBlock FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Text="{TemplateBinding Caption}" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
				<Setter Property="Foreground" Value="{DynamicResource customcontrol_optionview_foreground_mouseover}" />
			</Trigger>
		</Style.Triggers>
	</Style>
</ResourceDictionary>